﻿{include file="./include/header.tpl"}
<div class="contentFrame">
    <div class="hr cB mb20"></div>
    <div class="contentBox">
        {include file="./include/banner.tpl"}
        <div class="jobListFrame">
            {if !empty($job)}
            <div class="jobListBox">
                <div class="title">
                    <strong> <span class="label">＜{$lang.jobListBoxT1}＞</span> <br>
                    </strong>
                </div>
                <table class="jobListTable">
                    {foreach from=$job item=item}
                    <tr>
                        <td>
                            <div class="leftInfo">
                                <div>
                                    <a class="jobTitle" href="jobDetail/{$item.job_code}">{$lang.job_num}{$item.job_code}<br>{$item.content_title|nl2br}</a>{if $item.status == 1} <img alt="new" src="../image/new.gif">{/if}
                                </div>
                                <div>{$item.content_category|nl2br}</div>
                                <div>
                                    {if !empty($category[$item.category_id])}
                                        <a class="category" href="jobList/?mode=search&search_category_id={$item.category_id}">{$category[$item.category_id]}</a>
                                    | {$lang.field}
                                    {foreach from=$item.field_id item="f"}
                                        {if $f != 0}
                                            {if !empty($fieldList[$f])}
                                            <a class="field" href="jobList/?mode=search&search_category_id={$item.category_id}&search_field_id={$f}">{$fieldList[$f]}</a>
                                            {/if}
                                        {else}
                                            <a class="field" href="jobList/?mode=search&search_category_id={$item.category_id}">{$lang.all_in}{$category[$item.category_id]}</a>
                                        {/if}
                                    {/foreach}
                                    {/if}
                                </div>
                            </div>
                            <div class="rightInfo">
                                <dl>
                                    <dt>{$lang.region}</dt>
                                    <dd>
                                        {foreach $config.pref as $place}
                                            {if !empty($place[$item.pref_id])}
                                                {$place[$item.pref_id]}
                                                {break}
                                            {/if}
                                        {/foreach}
                                    </dd>
                                    <dt>{$lang.post_date}</dt>
                                    <dd>{$item.regist_datetime|date_format:'%Y/%m/%d'}</dd>
                                    <dt>{$lang.experience}</dt>
                                    <dd>{if $item.experience != ''}{$item.experience}{else}{$lang.none}{/if}</dd>
                                    <dt>{$lang.salary}</dt>
                                    <dd>{$item.salary}</dd>
                                </dl>
                            </div>
                        </td>
                    </tr>
                    {/foreach}
                </table>
                <br clear="all">
                <div class="pager tC mb20">
                    {$pager}
<!--                     <span class="disabled">Prev</span> -->
                </div>
            </div>
            {else}
                <div style="width: 900px;height: 370px;vertical-align: middle;text-align: center;display: table-cell;">{$lang.no_job}</div>
            {/if}
        </div>
        <div class="cB mb20"></div>
    </div>
</div>
{include file="./include/footer.tpl"}